package com.angel.arquitectura.service.impl.configurationParameter;

import com.angel.arquitectura.dao.configuration.ConfigurationParameterDAO;
import com.angel.arquitectura.model.configuration.ConfigurationParameter;
import com.angel.arquitectura.service.configurationParameter.ConfigurationParameterService;
import com.angel.arquitectura.service.impl.GenericServiceImpl;

import java.util.Collection;

/**
 *
 * @author William
 */
public class ConfigurationParameterServiceImpl extends GenericServiceImpl implements ConfigurationParameterService {

    private ConfigurationParameterDAO configurationParameterDAO;

    public Collection findAllByDescription(String description) {
        return configurationParameterDAO.findAllByDescription(description);
    }

    public ConfigurationParameter findUniqueByName(String name) {
        return configurationParameterDAO.findUniqueByName(name);
    }

    /*public Collection<ConfigurationParameter> findAll() {
        return configurationParameterDAO.findAll();
    }

    public void create(ConfigurationParameter configurationParameter){
        configurationParameterDAO.persist(configurationParameter);
    }

    public void update(ConfigurationParameter configurationParameter){
        configurationParameterDAO.update(configurationParameter);
    }

    public void remove(ConfigurationParameter configurationParameter){
        configurationParameterDAO.delete(configurationParameter);
    }*/

    public ConfigurationParameterDAO getConfigurationParameterDAO() {
        return configurationParameterDAO;
    }

    public void setConfigurationParameterDAO(ConfigurationParameterDAO configurationParameterDAO) {
        this.configurationParameterDAO = configurationParameterDAO;
    }
}